export const getRepairHouseList = () => {
  return uni.$u.http.get('/house')
}
export const getRepairItems = () => {
  return uni.$u.http.get('/repairItem')
}
export const toRepair = (data) => {
  return uni.$u.http.post('/repair', data)
}
export const getUpload = (data) => {
  return uni.$u.http.post('/upload', data)
}
export const getRepairList = (data) => {
  return uni.$u.http.get('/repair', {
    data
  })
}
export const cancelRepair = (id) => {
  return uni.$u.http.put(`cancel/repaire/${id}`)
}
// 获取报修详情
export const getRepairDetail = (id) => {
  return uni.$u.http.get(`repair/${id}`)
}
